home *** CD-ROM | disk | FTP | other *** search
/ PCGUIA 127 / PC Guia 127.iso / Software / Utils / GParted Live CD / Bin / gparted-livecd-0.2.2.iso / usr_sqfs / bin / timed-run < prev    next >
Encoding:
Text File  |  2005-07-18  |  192 b   |  10 lines

  1. #!/bin/sh
  2. # \
  3. exec expect -f "$0" ${1+"$@"}
  4. # run a program for a given amount of time
  5. # i.e. time 20 long_running_program
  6.  
  7. set timeout [lindex $argv 0]
  8. eval spawn [lrange $argv 1 end]
  9. expect
  10.